<!doctype html>
<html>
<head>
    <title>团队安排</title>
    <?php $this->load->module('admin/index/page_header');?>
    <link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/Kalendajs/build/kalendae.standalone.js"></script>
    <link href="<?php echo URLPRE;?>static/public/Lib/Kalendajs/build/kalendae.css" rel="stylesheet" />
</head>
<body>
<div class="wrap J_check_wrap">
    <form method="post" action="<?php echo $index_url?>">
        <div class="table_list" id="content">
            <div class="h_a">应付款查询</div>
            <table width="100%">
                <tbody>
                <tr>
                    <td>
                        团号：<input type="text" value="<?php echo $condition['go_num']?>" placeholder="团号" name="go_num" class="input rounded" size="20" />&nbsp;&nbsp;
                        线路编号/名称：<input type="text" value="<?php echo $condition['keywords']?>" placeholder="线路编号/名称" name="keywords" class="input rounded" size="20" />&nbsp;&nbsp;
                        团期：<input type="text" value="<?php echo $condition['start_date']?>" placeholder="团期" class="input rounded" name="start_date" id="Kalendae" />~<input type="text" value="<?php echo $condition['end_date']?>" placeholder="团期" class="input rounded" name="end_date" id="Kalendae2" />
                       
                        &nbsp;&nbsp;<input type="submit" class="btn" value="搜索">
                    </td>
                </tr>
                </tbody>
            </table>
            <table width="100%" border="1">
                
                <col width="50"/>
                <col width="100"/>
                <col width="160"/>
                <col width="340"/>
                <col width="50"/>
                <col width="100"/>
                <col width="100"/>
                <col width="100"/>
                <col width="100"/>
                <col width="100"/>
                <col width="100"/>
                <col/>
                <tr>
                    <td>序号</td>
                    <td>发团日期</td>
                    <td>团号</td>
                    <td>线路信息</td>
                    <td>人数</td>
                    <td>供应商结款</td>
                    <td>供应商代收</td>
                    <td>返佣</td>
                    <td>已付款</td>
                    <td>余款</td>
                    <td>操作</td>
                </tr>
                <?php if($list):?>
                    <tbody>
                    <?php foreach($list as $key=>$val):?>
                        <tr>
                            <td><?php echo $key+1;?></td>
                            <td><?php echo $val['go_date'];?></td>
                            <td>
                                <div class="mb5">
                                    <span class="mr15"><?php echo $val['go_num'];?></span><br />
                                </div>
                            </td> 
                            <td>
                                <div class="mb5">
                                    <span class="mr15">线路名称：<?php echo $val['line_name'];?></span><br />
                                    <span class="mr15" style="color:#060">线路编号：<?php echo $val['line_number'];?></span><br />
                                </div>
                            </td>
                            <td>
                                <?php echo $val['num'];?>
                            </td>
                            <td><?php echo $val['go_financial']?></td>
                            <td><?php echo $val['go_supplier']?></td>
                            <td><?php echo $val['go_commission']?></td>
                            <td><?php echo $val['go_pay']?></td>
                            <td><?php echo $val['go_financial']-$val['go_supplier']-$val['go_commission']-$val['go_pay']?></td>
                            <td class="btn_min">
								<a class="icon-paypal operation" href="javascript:;" data-uri="<?php echo $val['add_url']?>" title="查看/付款"> 付款</a>	
                            </td>
                        </tr>
                    <?php endforeach;?>
                    	<tr style="color:#F00; font-size:14px; font-weight:800;">
                    		<td colspan="5">总计（当前页）</td>
                    		<td><?php echo $page_total['go_financial']?></td>
                            <td><?php echo $page_total['go_supplier']?></td>
                            <td><?php echo $page_total['go_commission']?></td>
                            <td><?php echo $page_total['go_pay']?></td>
                            <td colspan="2"><?php echo $page_total['go_financial']-$page_total['go_supplier']-$page_total['go_commission']-$page_total['go_pay']?></td>
                    	</tr>
                    </tbody>
                <?php endif;?>
            </table>
        </div>
    </form>
    <div class="page_nav">
        <?php echo $this->mypageclass->show(2); ?>
    </div>
</div>
<script type="text/javascript">
$(function(){

    var kal_dae = new Kalendae.Input('Kalendae', {
        months:1,
        mode:'single',
        format:'YYYY-MM-DD',
    });
	var kal_dae2 = new Kalendae.Input('Kalendae2', {
        months:1,
        mode:'single',
        format:'YYYY-MM-DD',
    });

    //操作订单状态
    $(".operation").click(function(){
        var data_uri = $(this).attr('data-uri');
        var that = $(this, window.top.document);
        var title = $(this).attr('title');
        $.dialog.load(data_uri,{
            title:title+'订单',
            padding:'',
            resize: false,
            drag: false,
            width:'60%',
            fixed: true,
            zIndex:'100'
        });
    });
})
</script>
</body>
</html>